<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>


<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="follow, index" />
<meta name="author" content="iune co." />
<meta name="description"
	content="IUNE有最好的库存管理SaaS软件。以更快更高的准确度，跟进实时数据的访问和库存移动。" />
<meta name="keywords"
	content="库存, 存货管理, 库存管理, 仓库管理, 云ERP, 云逸ERP, 中小型企业云ERP, SaaS ERP软件/系统" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>

<style type="text/css">
td {
	padding: 0px;
	width: 100px;
}
</style>

</head>
<body>



	<div class="container-fluid" data-ng-controller="entrySettingCGRKCtrl as Model">

		<div class="row">
			<div class="col-sm-12">
				<div class="page-header">
					<div class="btn-group pull-right" role="toolbar">
						<button type="button" class="btn btn-default"
							data-ng-disabled="Model.dataMaster.currentIndex==null"
							data-ng-show="Model.dataMaster.readonly()"
							data-ng-click="Model.edit();">
							<span class="glyphicon glyphicon-edit"></span> 修改
						</button>
	
						<button type="button" class="btn btn-success "
							data-ng-show="!Model.dataMaster.readonly()"
							data-ng-click="Model.save();">
							<span class="glyphicon glyphicon-floppy-save"></span> 保存
						</button>
						<button type="button" class="btn btn-warning "
							data-ng-show="!Model.dataMaster.readonly()"
							data-ng-click="Model.saveCancel();">
							<span class="glyphicon glyphicon-floppy-open"></span> 取消
						</button>
					</div>
				  	<h3>进货单设置 <small>会计自动分录设置--{{Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].billTypeName.value}}</small></h3>
				</div>
			</div>
		</div>



		<div class="row">
			<div class="col-sm-6">
			
				<form class="form-horizontal" ng-if="Model.dataMaster.getCount()==1">
				
					<div class="form-group form-group-sm" ng-if="false">
						<label class="col-sm-2 control-label">fID</label>
						<div class="col-sm-10">
							<p class="form-control-static">
								{{Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].fID.value}}
							</p>
						</div>
					</div>
					<div class="form-group form-group-sm" ng-if="false">
						<label class="col-sm-2 control-label">代码</label>
						<div class="col-sm-10">
							<input type="text" name="billType" readonly class="form-control" 
								data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].billType.value" 
								>
						</div>
					</div>
					<div class="form-group form-group-sm">
						<label class="col-sm-3 control-label">名称</label>
						<div class="col-sm-9">
							<input type="text" class="form-control"  name="billTypeName" readonly
								data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].billTypeName.value" 
								>
						</div>
					</div>
					
				
					<div class="form-group form-group-sm has-warning">
						<label class="col-sm-3 control-label">生成凭证类别</label>
						<div class="col-sm-9">
							<select-with-label 
								select-data="dataPzBillType" 
								select-label="label"
								select-value="value"
								target-data="Model.dataMaster"
								target-label="pzbillTypeName"
								target-value="pzbillType"
								row-index="Model.dataMaster.getCurrentIndex()"
								vertical="dropup"
								horizon="left"
								value-show="true">
							</select-with-label>
							
						</div>
					</div>
				
					<div class="form-group form-group-sm has-warning">
						<label class="col-sm-3 control-label">凭证生成方式</label>
						<div class="col-sm-9">
							<label class="radio-inline " ng-repeat=" row in dataGatherFlag track by row.value">
								<input type="radio" name="gatherFlag" ng-disabled="Model.dataMaster.readonly()" id={{row.value}} ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].gatherFlag.value" ng-value="row.value" > {{row.label}}
							</label>
						</div>
					</div>
	
					<div class="form-group form-group-sm has-warning">
						<label class="col-sm-3 control-label">同单号科目汇总</label>
						<div class="col-sm-9">
							<input type="checkbox" name="samenoFlag" class="form-control" 
							 	ng-disabled="Model.dataMaster.readonly()"
								data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].samenoFlag.value" 
								data-ng-true-value="1" data-ng-false-value="0"
								>
						</div>
					</div>
					
					
					<div class="form-group">
						<label class="col-sm-3 control-label">备注</label>
						<div class="col-sm-9">
							<textarea rows="5" class="form-control" ng-disabled="Model.dataMaster.readonly()"
								data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].comments.value" 
								></textarea>
						</div>
					</div>
	
	
					<div class="form-group form-group-sm" hidden="true">
						<label class="col-sm-3 control-label">版本</label>
						<div class="col-sm-9">
							<p class="form-control-static">
							{{Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].version.value}}
							</p>
						</div>
					</div>
	
				</form>				
			</div>
			<div class="col-sm-6">
												
				    	
				    	
			<form class="form-horizontal" ng-if="Model.dataMaster.getCount()==1">
				<div class="panel panel-default">
				    <div class="panel-heading">
				        <h3 class="panel-title">存货会计科目</h3>
				    </div>
				    <div class="panel-body">
						<div class="row">
							<div class="col-sm-12">
								<div class="form-group form-group-sm">
									<label class="col-sm-3 control-label">参数来源</label>
									<div class="col-sm-9">
										<select class="form-control" ng-disabled="Model.dataMaster.readonly()"
											data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].captionFrom1.value"
											data-ng-options="o.value as o.label for o in dataCaptionFrom1">
										</select>
									</div>
								</div>
										
				    		</div>
							<div class="col-sm-12">
								<div class="form-group form-group-sm">
									<label class="col-sm-3 control-label">会计科目</label>
									<div class="col-sm-9">
										<div class="input-group">
											<input type="text" class="form-control" readonly data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].captionName1.value" data-ng-readonly="true"/>
											<span class="input-group-btn">
								            	<button class="btn btn-default btn-sm" ng-disabled="Model.dataMaster.readonly()" ng-click="Model.triggerCaptionNoClick('captionNo1','captionName1')"><span class="glyphicon glyphicon-th-list" aria-hidden="true"></span></button> 
								            </span> 
											<input type="text" class="form-control" data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].captionNo1.value" readonly>
										</div><!-- /input-group -->
									</div>
								</div>
				    		</div>
				    	</div>
				    
				    </div>
				</div>
				<div class="panel panel-success">
				    <div class="panel-heading">
				        <h3 class="panel-title">应交增值税会计科目</h3>
				    </div>
				    <div class="panel-body">
						<div class="row">
							<div class="col-sm-12">
								<div class="form-group form-group-sm">
									<label class="col-sm-3 control-label">参数来源</label>
									<div class="col-sm-9">
										<select class="form-control" ng-disabled="Model.dataMaster.readonly()"
											data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].captionFrom2.value"
											data-ng-options="o.value as o.label for o in dataCaptionFrom2">
										</select>
									</div>
								</div>
										
				    		</div>
							<div class="col-sm-12">
								<div class="form-group form-group-sm">
									<label class="col-sm-3 control-label">会计科目</label>
									<div class="col-sm-9">
										<div class="input-group">
											<input type="text" class="form-control" readonly data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].captionName2.value" data-ng-readonly="true"/>
											<span class="input-group-btn">
								            	<button class="btn btn-default btn-sm" ng-disabled="Model.dataMaster.readonly()" ng-click="Model.triggerCaptionNoClick('captionNo2','captionName2')"><span class="glyphicon glyphicon-th-list" aria-hidden="true"></span></button> 
								            </span> 
											<input type="text" class="form-control" data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].captionNo2.value" readonly>
										</div><!-- /input-group -->
									</div>
								</div>
				    		</div>
				    	</div>

				    </div>
				</div>
				<div class="panel panel-info">
				    <div class="panel-heading">
				        <h3 class="panel-title">账款会计科目</h3>
				    </div>
				    <div class="panel-body">
						<div class="row">
							<div class="col-sm-12">
								<div class="form-group form-group-sm">
									<label class="col-sm-3 control-label">参数来源</label>
									<div class="col-sm-9">
										<select class="form-control" ng-disabled="Model.dataMaster.readonly()"
											data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].captionFrom3.value"
											data-ng-options="o.value as o.label for o in dataCaptionFrom3">
										</select>
									</div>
								</div>
										
				    		</div>
							<div class="col-sm-12">
								<div class="form-group form-group-sm">
									<label class="col-sm-3 control-label">会计科目</label>
									<div class="col-sm-9">
										<div class="input-group">
											<input type="text" class="form-control" readonly data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].captionName3.value" data-ng-readonly="true"/>
											<span class="input-group-btn">
								            	<button class="btn btn-default btn-sm" ng-disabled="Model.dataMaster.readonly()" ng-click="Model.triggerCaptionNoClick('captionNo3','captionName3')"><span class="glyphicon glyphicon-th-list" aria-hidden="true"></span></button> 
								            </span> 
											<input type="text" class="form-control" data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].captionNo3.value" readonly>
										</div><!-- /input-group -->
									</div>
								</div>
				    		</div>
				    	</div>

				    </div>
				</div>
				<div class="panel panel-warning">
				    <div class="panel-heading">
				        <h3 class="panel-title">费用会计科目</h3>
				    </div>
				    <div class="panel-body">
						<div class="row">
							<div class="col-sm-12">
								<div class="form-group form-group-sm">
									<label class="col-sm-3 control-label">参数来源</label>
									<div class="col-sm-9">
										<select class="form-control" ng-disabled="Model.dataMaster.readonly()"
											data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].captionFrom4.value"
											data-ng-options="o.value as o.label for o in dataCaptionFrom4">
										</select>
									</div>
								</div>
										
				    		</div>
							<div class="col-sm-12">
								<div class="form-group form-group-sm">
									<label class="col-sm-3 control-label">会计科目</label>
									<div class="col-sm-9">
										<div class="input-group">
											<input type="text" class="form-control" readonly data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].captionName4.value" data-ng-readonly="true"/>
											<span class="input-group-btn">
								            	<button class="btn btn-default btn-sm" ng-disabled="Model.dataMaster.readonly()" ng-click="Model.triggerCaptionNoClick('captionNo4','captionName4')"><span class="glyphicon glyphicon-th-list" aria-hidden="true"></span></button> 
								            </span> 
											<input type="text" class="form-control" data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].captionNo4.value" readonly>
										</div><!-- /input-group -->
									</div>
								</div>
				    		</div>
				    	</div>

				    </div>
				</div>
				<div class="panel panel-danger">
				    <div class="panel-heading">
				        <h3 class="panel-title">预付会计科目</h3>
				    </div>
				    <div class="panel-body">
						<div class="row">
							<div class="col-sm-12">
								<div class="form-group form-group-sm">
									<label class="col-sm-3 control-label">参数来源</label>
									<div class="col-sm-9">
										<select class="form-control" ng-disabled="Model.dataMaster.readonly()"
											data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].captionFrom5.value"
											data-ng-options="o.value as o.label for o in dataCaptionFrom5">
										</select>
									</div>
								</div>
										
				    		</div>
							<div class="col-sm-12">
								<div class="form-group form-group-sm">
									<label class="col-sm-3 control-label">会计科目</label>
									<div class="col-sm-9">
										<div class="input-group">
											<input type="text" class="form-control" readonly data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].captionName5.value" data-ng-readonly="true"/>
											<span class="input-group-btn">
								            	<button class="btn btn-default btn-sm" ng-disabled="Model.dataMaster.readonly()" ng-click="Model.triggerCaptionNoClick('captionNo5','captionName5')"><span class="glyphicon glyphicon-th-list" aria-hidden="true"></span></button> 
								            </span> 
											<input type="text" class="form-control" data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].captionNo5.value" readonly>
										</div><!-- /input-group -->
									</div>
								</div>
				    		</div>
				    	</div>

				    </div>
				</div>
				<div class="panel panel-default">
				    <div class="panel-heading">
				        <h3 class="panel-title">差异会计科目</h3>
				    </div>
				    <div class="panel-body">
						<div class="row">
							<div class="col-sm-12">
								<div class="form-group form-group-sm">
									<label class="col-sm-3 control-label">参数来源</label>
									<div class="col-sm-9">
										<select class="form-control" ng-disabled="Model.dataMaster.readonly()"
											data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].captionFrom6.value"
											data-ng-options="o.value as o.label for o in dataCaptionFrom6">
										</select>
									</div>
								</div>
										
				    		</div>
							<div class="col-sm-12">
								<div class="form-group form-group-sm">
									<label class="col-sm-3 control-label">会计科目</label>
									<div class="col-sm-9">
										<div class="input-group">
											<input type="text" class="form-control" readonly data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].captionName6.value" data-ng-readonly="true"/>
											<span class="input-group-btn">
								            	<button class="btn btn-default btn-sm" ng-disabled="Model.dataMaster.readonly()" ng-click="Model.triggerCaptionNoClick('captionNo6','captionName6')"><span class="glyphicon glyphicon-th-list" aria-hidden="true"></span></button> 
								            </span> 
											<input type="text" class="form-control" data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].captionNo6.value" readonly>
										</div><!-- /input-group -->
									</div>
								</div>
				    		</div>
				    	</div>

				    </div>
				</div>
				
				</form>
				    	
			
			</div>
		</div>


		<div class="row">
			<div class="col-sm-6">

			</div>
		</div>

	</div>





</body>

</html>

